package ace.module.account.core.impl.dao.repository;

import ace.cmp.spring.data.jdbc.querydsl.core.repository.QuerydslJdbcBaseRepository;
import ace.module.account.core.impl.constant.AccountCoreConstant;
import ace.module.account.core.impl.dao.entity.IamApplication;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.stereotype.Repository;

/**
 * 账户应用 repository.
 *
 * @author Caspar
 */
@DS(AccountCoreConstant.DEFAULT_DATA_SOURCE_NAME)
@Repository
public interface IamApplicationRepository extends QuerydslJdbcBaseRepository<IamApplication, Long> {

  IamApplication getByKey(String key);

  IamApplication getByOutTypeAndOutIdAndDeleteFlag(
      String outType, String outId, Long deleteFlag);
}
